package com.ws.universal.tools.loading.button;

import android.animation.ValueAnimator;

import kotlin.TypeCastException;
import kotlin.jvm.internal.Intrinsics;

public class LoadingButton$playTouchDownAnimation$$inlined$apply$lambda$1 implements ValueAnimator.AnimatorUpdateListener {
    // $FF: synthetic field
    final LoadingButton this$0;

    LoadingButton$playTouchDownAnimation$$inlined$apply$lambda$1(LoadingButton var1) {
        this.this$0 = var1;
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        Intrinsics.checkExpressionValueIsNotNull(valueAnimator, "valueAnimator");
        Object var10000 = valueAnimator.getAnimatedValue();
        if (var10000 == null) {
            throw new TypeCastException("null cannot be cast to non-null type kotlin.Float");
        } else {
            float progress = (Float) var10000;
            LoadingButtonKt.access$setShadowDepth(LoadingButton.access$getMPaint$p(this.this$0), ((float) 2 + (float) 4 * progress) * LoadingButton.access$getMDensity$p(this.this$0));
            LoadingButton.access$setMRippleRadius$p(this.this$0, (float) this.this$0.getWidth() * progress);
            this.this$0.invalidate();
        }
    }
}
